<!-- 导航侧栏 -->
<aside class="main-sidebar">
    <!-- sidebar: style can be found in sidebar.less -->
    <section class="sidebar">
        <ul class="sidebar-menu">
            <li class="header"></li>
            #menu_root_list()
            #for(rootMenu : menus)
            #if(rootMenu.type==1 && (session.session_admin.role.isSystem || (!session.session_admin.role.isSystem && intersection(rootMenu.childrenUrls,session.session_admin.permissions))))
            <li class="treeview">
                <a href="#">
		            <i class="fa #(rootMenu.icon)"></i> <span>#(rootMenu.name)</span>
		            <span class="pull-right-container">
		                <i class="fa fa-angle-left pull-right"></i>
		            </span>
		        </a>
                <ul class="treeview-menu">
                	#for(subMenu : rootMenu.children)
                	#if(session.session_admin.role.isSystem || (!session.session_admin.role.isSystem && session.session_admin.permissions.contains(subMenu.url)))
                    <li id="admin-#(subMenu.code)"><a href="#(base)#(subMenu.url)"><i class="fa fa-circle-o"></i> #(subMenu.name)</a></li>
                    #end
                    #end
                </ul>
            </li>
            #else if(rootMenu.type==2)
            #if(session.session_admin.role.isSystem || (!session.session_admin.role.isSystem && session.session_admin.permissions.contains(rootMenu.url)))
            <li id="admin-#(rootMenu.code)"><a href="#(base)#(rootMenu.url)"><i class="fa #(rootMenu.icon)"></i> <span>#(rootMenu.name)</span></a></li>
            #end
            #end
            #end
            #end
        </ul>
    </section>
    <!-- /.sidebar -->
</aside>
<!-- 导航侧栏 /-->